package generic;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class LostInfomation {

	public static void main(String[] args) {
		List<Integer> list = new ArrayList<Integer>();
		list.add(2);
		
		System.out.println(Arrays.toString(list.getClass().getTypeParameters()));
		System.out.println(Arrays.toString(list.getClass().getGenericInterfaces()));
	}
}

class P<T>{
	
	public void gg(){
		T[] tt = (T[])new Object[10];
	}
	
}
